//
const mongoose = require('mongoose');

//创建结构对象
const PhoneSchema = new mongoose.Schema({
    brand: String,
    color: String,
    price: Number,
});

//创建模型对象
const PhoneModel = mongoose.model('phone', PhoneSchema);

//暴露
module.exports = PhoneModel;